home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / gui / textwin.lha / TextWin / src / makefile < prev    next >
Encoding:
Makefile  |  1994-12-06  |  1.8 KB  |  125 lines

  1. #
  2. # Makefile for 
  3. #
  4. # $Id$
  5. # IMPORTANT:  To create dependencies  -->  make depend
  6. #
  7. # Makefile for use with Aztec v5 and beyond.  Uses 32-bit ints
  8. #
  9. # $Log$
  10. #
  11.  
  12. .SUFFIXES:    # Tell make to forget the suffixes it alreay knows
  13.  
  14. .SUFFIXES: .c .o .h
  15.  
  16. # Uncomment out this line if you want make to run quiet
  17. #.SILENT:
  18. .PHONY: .depend functions.h
  19.  
  20. CC = acc 
  21. AS = as
  22. LD = ald
  23. MKDEP = makemake >.depend -M
  24.  
  25. #
  26. # Set things up so we get .o files built correctly....
  27. # (must be configured for each user)
  28. #
  29.  
  30. #
  31. # the usual stuff ..............
  32. #
  33. MODNAME= textwin
  34. AOUT= $(MODNAME) 
  35.  
  36. CCOPTS = -wqs
  37.  
  38. INCLUDES =
  39. CFLAGS = -bs
  40. AFLAGS =
  41. LFLAGS = -g
  42. #LIBS = -lmui -lm -lc
  43. LIBS = -lmui -lreqtools -lc
  44.  
  45. #
  46. # Names of the directories where we find sources....
  47. #
  48. AMIGA =
  49.  
  50. #
  51. # and objects....
  52. #
  53. LIBOBJ = +L -lamiga
  54.  
  55. #
  56. # List of source files 
  57. #
  58. SRC1 = textwin.c
  59.  
  60. SRC2 =
  61.  
  62. SRCn = main.c
  63.  
  64. SRC  = $(SRC1) $(SRC2) $(SRCn)
  65.  
  66. #
  67. # List of object files
  68. #
  69. OBJ1 = textwin.o
  70.  
  71. OBJ2 =
  72.  
  73. OBJn = main.o
  74.  
  75. OBJ = $(OBJ1) $(OBJ2) $(OBJn)
  76.  
  77. #
  78. # THE PROGRAM (AOUT)
  79. #
  80.  
  81. $(AOUT) : init $(OBJ)
  82.     $(LD) $(LFLAGS) -o $(AOUT) $(OBJ) $(LIBS) $(LIBOBJ)
  83.  
  84.  
  85. #
  86. # Clean things up a little ...
  87. #
  88. clean:
  89.     -delete #?.o
  90.  
  91. clobber: clean
  92.     -delete $(AOUT)
  93.  
  94. # Initilize compiler options
  95. #
  96. init:
  97.     mset ccopts=$(CCOPTS)
  98.  
  99. #
  100. # Generate prototypes
  101. #
  102. # We do this in multiple passes so to avoid problems with the long
  103. # command line generate when you slap all the sources together.
  104. #
  105. functions.h:
  106.     mkproto >functions.h $(SRC)
  107.  
  108. #
  109. # Build the dependency list for the .h files used by all sources.
  110. #
  111. # We do this in multiple passes so to avoid problems with the long
  112. # command line generate when you slap all the sources together.
  113. #
  114.  
  115. .depend:
  116.     $(MKDEP) $(INCLUDES) $(SRC)
  117.  
  118. # This is a bit of a hack for the benifit of GNU Make version 3.58.
  119. include .depend
  120.  
  121. # File dependencies will no longer be appended after this line by
  122. # "make depend" see above.
  123.